home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 1.1 KB | 83 lines | [TEXT/CWIE] |
- // DDocData.cp -- data container class for AMReminder
-
- #include "DDocData.h"
-
- #include <LFileStream.h>
-
-
- //----------
- DDocData::DDocData ()
- {
- mReminderChoice = -1;
- }
-
- //----------
- DDocData::~DDocData ()
- {
- }
-
- //----------
- void DDocData::CopyFrom (
- DDocData* inOther)
- {
- mReminderChoice = inOther->mReminderChoice;
- // mReminders = inOther->mReminders;
- }
-
- //----------
- void DDocData::ReadFromFile (
- LFileStream* inFile)
- {
- mReminders.ReadFromFile (inFile);
- }
-
- //----------
- void DDocData::WriteToFile (
- LFileStream* inFile)
- {
- mReminders.WriteToFile (inFile);
- }
-
-
- //----------
- SInt16 DDocData::GetReminderChoice () const
- {
-
- return mReminderChoice;
- }
-
- //----------
- void DDocData::SetReminderChoice (
- SInt16 inValue)
- {
- mReminderChoice = inValue;
- SignalDataChanged (idIsSelected);
-
- SignalDataChanged (idReminderChoice);
- }
-
-
- //----------
- TAMArray<DReminder>* DDocData::GetReminders ()
- {
-
- return &mReminders;
- }
-
-
- //----------
- Boolean DDocData::GetIsSelected () const
- {
- return ((0 <= mReminderChoice)
- && (mReminderChoice < mReminders.GetCount ()));
-
- }
-
- //----------
- void DDocData::SetIsSelected (
- Boolean inValue)
- {
-
- SignalDataChanged (idIsSelected);
- }
-